﻿using Easy.Common.Exceptions;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.InterceptionExtension;
using System.Collections.Generic;
using System.Reflection;
using Easy.Common;

namespace Easy.ServiceLocator.Unity.Interceptor
{
    public class EasyDefaultInterceptor
    {
        public static void Configure(List<Assembly> assemblies)
        {
            CheckHelper.ArrayNotHasNull(assemblies, "assemblies");

            List<IInterceptionConfigurer> configurerlst = new List<IInterceptionConfigurer> { };

            foreach (var configurer in configurerlst)
            {
                configurer.Configure(assemblies);
            }
        }
    }
}
